import { App } from "vue";
// 可移动盒子
import Dragable from "./dragable/index.vue";

// 富文本编辑器
import RichEditor from "./richEditor/index.vue";
import IsolateRichEditor from "./richEditor/isolate.vue";

const components = [Dragable, RichEditor, IsolateRichEditor];
export default {
  install(app: App) {
    components.forEach((component) => {
      if (component.name) {
        app.component(component.name, component);
      } else {
        console.error("组件名称不能为空 - ", component.toString());
      }
    });
  },
};
